<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://unpkg.com/vue@next"></script>
    <div id="app">
        <div id="hhh">
            
        </div>
        <!-- <parent-comp></parent-comp> -->

    </div>

    <script>
        const vueOpt = {
            data(){
                return {

                }
            }
        }

        const app = Vue.createApp({
            data(){
                return {
                    
                }
            },
        })

        app.component('parent-comp', {
            data(){
                return {

                }
            },

            template:`
                <div id="bbb">
                    <teleport to="#hhh">
                        <child-comp name="kenny.bai"></child-comp>
                        
                    </teleport>
                </div>
            `
        })

        app.component('child-comp', {
            props:['name'],
            data(){
                return {
                    
                }
            },

            template: `
                <div>
                {{name}}
                </div>
            `
        })
        app.mount('#app');


    </script>
</body>
</html>